Skip to content

Patch: fix ISTA/FISTA with complex numbers#692

Merged
mrava87 merged 3 commits into
PyLops:devfrom
mrava87:patch-solverscupy
Aug 27, 2025
Merged

Patch: fix ISTA/FISTA with complex numbers#692
mrava87 merged 3 commits into
PyLops:devfrom
mrava87:patch-solverscupy

Conversation

@mrava87
Copy link
Copy Markdown
Collaborator

@mrava87 mrava87 commented Aug 27, 2025

This PR introduces a number of fixes for ISTA/FISTA to allow them to run with complex valued model vectors and operators, namely:

  • the definition of decay, making sure it is always a real valued array (also for complex valued operators). This suppresses a warning in _hardthreshold.
  • the clipping in _halfthreshold is now performed separately for real and imag part of complex valued arrays

Additionally, some of the tests in test_sparsity are modified to also test scenarios with complex valued model vectors and operators.

@mrava87 mrava87 changed the title Patch: fix decay with complex numbers Patch: fix ISTA/FISTA with complex numbers Aug 27, 2025
@mrava87 mrava87 merged commit 67ff814 into PyLops:dev Aug 27, 2025
14 checks passed
@mrava87 mrava87 deleted the patch-solverscupy branch August 27, 2025 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant